package cn.com.yang.algorithm.v1;

import org.bouncycastle.math.ec.ECPoint;

import java.math.BigInteger;

public class SM2KeyVO {
    BigInteger privateKey;
    ECPoint publicKey;

    public String getPriHexInSoft() {
        return SM1Util.byteToHex(this.privateKey.toByteArray());
    }

    public BigInteger getPrivateKey() {
        return this.privateKey;
    }

    public String getPubHexInSoft() {
        return SM1Util.byteToHex(this.publicKey.getEncoded(true));
    }

    public ECPoint getPublicKey() {
        return this.publicKey;
    }

    public void setPrivateKey(BigInteger arg1) {
        this.privateKey = arg1;
    }

    public void setPublicKey(ECPoint arg1) {
        this.publicKey = arg1;
    }
}
